import request from '@/utils/request'

export default {
    getChargeListPage(current,limit,chargeQuery){
        return request({
            url: `/proservice/pro-charge/pageChargeCondition/${current}/${limit}`,
            method: 'post',
            data:chargeQuery
        })
    },
    deleteChargeById(id){
        return request({
            url: `/proservice/pro-charge/${id}`,
            method: 'delete'
        })
    },
    addCharge(proCharge){
        return request({
            url: `/proservice/pro-charge/addCharge`,
            method: 'post',
            data: proCharge
        })
    },
    getChargeById(id){
        return request({
            url: `/proservice/pro-charge/getCharge/${id}`,
            method: 'get'
        })
    },
    updateChargeInfo(proCharge){
        return request({
            url: `/proservice/pro-charge/updateCharge`,
            method: 'post',
            data: proCharge
        })
    }
}

